package com.foreknow.practice.demo11.service.impl;

import com.foreknow.practice.demo11.dao.UserDao;
import com.foreknow.practice.demo11.dao.impl.UserDaoImpl;
import com.foreknow.practice.demo11.service.UserService;


/**
 * 业务层调用dao层的方法
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao = new UserDaoImpl();

    @Override
    public boolean isValidate(String username, String password) {
        return userDao.isLogin(username,password);
    }
}
